package com.mokio.mapper;


import com.mokio.entity.Carshop;
import com.mokio.entity.CarshopExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarshopMapper {

    //购物车商品+1
    boolean updateCarshopsAddOne(Integer cid);

    //获取用户的全部的购物查信息
    List<Carshop> getAllCarShopByUserId(Integer uid);

    //根据uid和pid查询购物车
    List<Carshop> selectByUIdAndPId(Carshop carshop);

    int countByExample(CarshopExample example);

    int deleteByExample(CarshopExample example);

    int deleteByPrimaryKey(Integer cid);

    int insert(Carshop record);

    int insertSelective(Carshop record);

    List<Carshop> selectByExample(CarshopExample example);

    Carshop selectByPrimaryKey(Integer cid);

    int updateByExampleSelective(@Param("record") Carshop record, @Param("example") CarshopExample example);

    int updateByExample(@Param("record") Carshop record, @Param("example") CarshopExample example);

    int updateByPrimaryKeySelective(Carshop record);

    int updateByPrimaryKey(Carshop record);



}